package com.dongdongshop.service.impl;

import com.dongdongshop.dao.SearchDao;
import com.dongdongshop.data.PageBean;
import com.dongdongshop.pojo.item.TbItem;
import com.dongdongshop.service.search.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @Author Eayon
 * @Date 2020/4/3 18:49
 */
@Service
public class SearchServiceImpl implements SearchService {

    @Autowired
    private SearchDao searchDao;

    @Override
    public PageBean<TbItem> searchItemByKeyword(String keyword, Integer pageNum, Integer pageSize) throws IOException {
        return searchDao.searchItemByKeyword(keyword,pageNum,pageSize);
    }
}
